package com.arrogames.rgblabyrinth.model.storage {
	
	/**
	 * ...
	 * @author Robin van den Bogaard
	 */
	[RemoteClass(alias="com.arrogames.rgblabyrinth.model.storage.GameMetaData")]
	public class GameMetaData {
		
		private var _creation:Date;
		private var _lastPlayed:Date;
		private var _baseColor:uint;
		private var _progress:Number;
		
		private var _level:int;
		
		public function GameMetaData() {
			_creation = new Date();
			_lastPlayed = new Date();
			this._baseColor = 0xff0000;
			this._level = 1;
			this._progress = 0;
		}

		public function get creation():Date { return _creation; }
		
		public function get lastPlayed():Date { return _lastPlayed; }
		public function set lastPlayed(value:Date):void { _lastPlayed = value; }
		
		public function get baseColor():uint { return _baseColor; }
		public function set baseColor(value:uint):void { _baseColor = value; }
		
		public function get level():int { return _level; }
		public function set level(value:int):void { _level = value; }
		
		public function get progress():Number { return _progress; }
		public function set progress(value:Number):void { _progress = value; }
		
		public function toString():String {
			return lastPlayed + ", " + baseColor + ", L" + level + " " + progress + "%"; 
		}
	}

}